* configure.ac: Explicit error for non-ASCII directories
authorGlenn Morris <rgm@gnu.org>
Wed, 23 Oct 2013 20:46:46 +0000 (16:46 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 23 Oct 2013 20:46:46 +0000 (16:46 -0400)
ChangeLog
configure.ac

index 5b4f47d551fa8664e72fbe243227348dba0ccd39..f55b4c5a86a30cb98628bd1c7f59c7d9c992d2c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-10-23  Glenn Morris  <rgm@gnu.org>
 
+       * configure.ac: Explicit error for non-ASCII directories.  (Bug#15260)
+
        Progress towards allowing installation in directories with whitespace.
        * Makefile.in (COPYDESTS, write_subdir, install-arch-dep)
        (install-arch-indep, install-etcdoc, install-info, install-man)
index d88f1d39b66aac484ef5526c4a1724a3923959c7..74ac7695cdc44b85817147e18cae17d6880389c5 100644 (file)
@@ -73,6 +73,17 @@ dnl Support for --program-prefix, --program-suffix and
 dnl --program-transform-name options
 AC_ARG_PROGRAM
 
+dnl http://debbugs.gnu.org/15260
+for var in "`pwd`" "`cd \"$srcdir\"; pwd`" "$bindir" \
+    "$datadir" "$sharedstatedir" "$libexecdir"; do
+
+  dnl configure sets LC_ALL=C early on, so this range should work.
+  case "$var" in
+    *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;;
+  esac
+
+done
+
 dnl It is important that variables on the RHS not be expanded here,
 dnl hence the single quotes.  This is per the GNU coding standards, see
 dnl (autoconf) Installation Directory Variables